package com.tubang.organization.vo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.tubang.common.constant.Constants;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author wsl
 * @since 2017-11-30
 */
@SuppressWarnings("serial")
public class MenuVo implements Serializable {

    /**
     * 二级菜单
     */
    private List<MenuVo> childList = new ArrayList<MenuVo>();

    /**
     * 编号
     */
    private String id;
    /**
     * 父级编号 中间用逗号隔开
     */
    private String parentId;
    /**
     * 名称
     */
    private String name;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 链接
     */
    private String href;
    /**
     * 按钮
     */
    private String function;
    /**
     * 资源类型   1:链接   2：按钮
     */
    private String type;

    /**
     * 菜单图标链接
     */
    @TableField("icon_url")
    private String iconUrl;


    /**
     * 是否含有该菜单权限  0 没有  1有
     */
    private String roleType = Constants.DEFAULT_VAULE_ZERO;


    public String getParentId() {
        return parentId;
    }

    public MenuVo setParentId(String parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getName() {
        return name;
    }

    public MenuVo setName(String name) {
        this.name = name;
        return this;
    }

    public Integer getSort() {
        return sort;
    }

    public MenuVo setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    public String getHref() {
        return href;
    }

    public MenuVo setHref(String href) {
        this.href = href;
        return this;
    }

    public String getFunction() {
        return function;
    }

    public MenuVo setFunction(String function) {
        this.function = function;
        return this;
    }

    public String getType() {
        return type;
    }

    public MenuVo setType(String type) {
        this.type = type;
        return this;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<MenuVo> getChildList() {
        return childList;
    }

    public void setChildList(List<MenuVo> childList) {
        this.childList = childList;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }
}